{template 'common/header'}

<div class="main">
	<ul class="nav nav-tabs">
        <li class="active">资源统计<font style="color:red;">资源总{php echo $sum}次</font></li>
	</ul>
 <div class="row-fluid">

        <div class="span8 control-group">

            <a onclick="return confirm('清除所有无效资源，确认吗？'); return false;" href="{php echo $this->createWebUrl('formid', array('op' => 'clear'))}" title="删除"

               class="btn btn-danger"><i class="fa fa-times">一键清除所有无效资源</i></a>

        </div>

    </div>
  <!--  <div class="panel panel-info">
        <div class="panel-heading">筛选</div>
        <div class="panel-body">
                <form action="./index.php" method="get" class="form-horizontal" role="form">
                    <input type="hidden" name="c" value="site"/>
                    <input type="hidden" name="a" value="entry"/>
                    <input type="hidden" name="m" value="amouse_wxapp_card"/>
                    <input type="hidden" name="do" value="formid"/>
                    <div class="form-group"><label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">姓名</label>
                        <div class="col-xs-12 col-sm-8 col-lg-9">
                            <input class="form-control" name="keywords"  type="text" value="{$_GPC['keywords']}">
                        </div>
                    </div>
                    <div class="form-group"><label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">手机号</label>
                        <div class="col-xs-12 col-sm-8 col-lg-9">
                            <input class="form-control" name="keywords1"  type="text" value="{$_GPC['keywords1']}">
                        </div>
                    </div>
                    <div class=" col-xs-12 col-sm-2 col-lg-2">
                        <button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
                    </div>

				 </form>
            </div>
	</div>-->
	<div style="padding:15px;">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
                    <th style="">ID</th>
					<th style="">OPENID</th>
					<th style="">FORMID</th>
                    <th style="">次数</th>
					<th>创建时间</th>
					<th style="text-align:right;">操作</th>
				</tr>
			</thead>
			<tbody>
				{loop $list $row}
				<tr>
                    <td>{$row['id']} </td>
					<td>{$row['f_openid']} </td>
					<td>{$row['formid']}</td>
                    <td>{$row['fkey']}</td>
					<td>{php echo date('Y-m-d H:i:s', $row['createtime'])}</td>
					<td>
                        <a href="{php echo $this->createWebUrl('formid', array('op' => 'delete','id' => $row['id']))}" onclick="return confirm('确认删除？');return false;" title="删除" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="top"><i class="fa fa-times"></i></a>
					</td>
				</tr>
				{/loop}
					<tr>
 				<td colspan="7">

                </td>
			</tr>
			</tbody>
		</table>
		{$pager}
	</div>

</div>

{template 'common/footer'}